package com.cems.mapper;

import com.cems.pojo.Message;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
@Mapper
@Component
public interface MessageMapper {
    //根据用户查询信息
    List<Message> selAllMessageById(int id);

    //添加
    int addMessage(Map<String,Object> map);

    //删除
    int delMessage(int id);

    //根据id查询
    Message selAllMessageById2(int id);
}
